package homework;

class SalariedEmployee extends Employee {
    private double monthlySalary;

    public SalariedEmployee(String name, int birthdayMonth, double monthlySalary) {
        super(name, birthdayMonth);
        this.monthlySalary = monthlySalary;
    }

    public double getMonthlySalary() {
        return monthlySalary;
    }

    public double getSalary(int month) {
        return monthlySalary + super.getSalary(month);
    }
}